<meta charset="utf-8">
<div data-page="contacts-detail" class="page navbar-through no-toolbar contacts-detail">
	<div class="navbar">
		<div class="navbar-inner">
			<div class="left">
				<a href="#" class="link back icon-only"> <i
					class="ti-arrow-circle-left"></i>
				</a>
			</div>
			<div class="center">用户详细</div>
			<div class="right">
				<!-- <a href="form-select.html" class="link icon-only">＋</a> -->
			</div>
		</div>
	</div>

	<div class="page-content">

		<div class="content-block">
			<div class="avatar wx-gallery-view">
				<a href="#"><img src="<%=contact.avatar%>"></a>
			</div>
		</div>

		<div class="content-block-title">基本信息</div>
		<div class="list-block">
			<ul>
				<li class="item-content">
					<div class="item-inner">
						<div class="item-title">员工号：</div>
						<div class="item-after"><%=contact.userid%></div>
					</div>
				</li>
				<li class="item-content">
					<div class="item-inner">
						<div class="item-title">姓名：</div>
						<div class="item-after"><%=contact.name%></div>
					</div>
				</li>
				<li class="item-content">
					<div class="item-inner">
						<div class="item-title">邮箱：</div>
						<div class="item-after"><%=contact.email%></div>
					</div>
				</li>
				<li class="item-content">
					<div class="item-inner">
						<div class="item-title">电话：</div>
						<div class="item-after"><%=contact.mobile%></div>
					</div>
				</li>
				
			</ul>
			
		</div>

		
		
		<div class="content-block-title">所属部门</div>
		<div class="list-block">
			<ul>
				<% contact.deptlist.forEach(function(dept){ %>
				<li class="item-content">
					<div class="item-inner">
						<div class="item-title"><%=dept.name%></div>
					</div>
				</li>
				<% }) %>
			</ul>
		</div>

		
		<% if (contact.userid == req.session.user.userid) { %>
		<div class="content-block">
			<div class="row">
				<div class="col-100"><a href="<%=sails.config.application.appPrefix%>/logout" class="button button-big button-fill color-red">注销</a></div>
			</div>
		</div>
		<% } %>
			
	</div>

</div>
